<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>新函数</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="migration70.changed-functions.html">« 变更的函数</a></li>
      <li style="float: right;"><a href="migration70.classes.html">新的类和接口 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="migration70.html">从 PHP 5.6.x 移植到 PHP 7.0.x</a></li>
    <li>新函数</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="migration70.new-functions" class="sect1">
 <h2 class="title">新函数</h2>

 <div class="sect2" id="migration70.new-functions.closure">
  <h3 class="title"><a href="class.closure.html" class="link">Closure</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="closure.call.html" class="methodname">Closure::call()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.csprng">
  <h3 class="title">CSPRNG</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.random-bytes.html" class="function">random_bytes()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.random-int.html" class="function">random_int()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.errorfunc">
  <h3 class="title"><a href="book.errorfunc.html" class="link">错误处理和日志</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.error-clear-last.html" class="function">error_clear_last()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.generator">
  <h3 class="title"><a href="class.generator.html" class="link">Generator</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="generator.getreturn.html" class="methodname">Generator::getReturn()</a></span>
    </span>
   </li>
  </ul>
 </div>
 
 <div class="sect2" id="migration70.new-functions.gmp">
  <h3 class="title"><a href="book.gmp.html" class="link">GNU 多重精度</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.gmp-random-seed.html" class="function">gmp_random_seed()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.math">
  <h3 class="title"><a href="book.math.html" class="link">Math</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.intdiv.html" class="function">intdiv()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.pcre">
  <h3 class="title"><a href="book.pcre.html" class="link">PCRE</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.preg-replace-callback-array.html" class="function">preg_replace_callback_array()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.info">
  <h3 class="title"><a href="book.info.html" class="link">PHP 选项和信息</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.gc-mem-caches.html" class="function">gc_mem_caches()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.get-resources.html" class="function">get_resources()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.posix">
  <h3 class="title"><a href="book.posix.html" class="link">POSIX</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.posix-setrlimit.html" class="function">posix_setrlimit()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.reflection">
  <h3 class="title"><a href="book.reflection.html" class="link">Reflection</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="reflectionparameter.gettype.html" class="function">ReflectionParameter::getType()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="reflectionparameter.hastype.html" class="function">ReflectionParameter::hasType()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="reflectionfunctionabstract.getreturntype.html" class="function">ReflectionFunctionAbstract::getReturnType()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="reflectionfunctionabstract.hasreturntype.html" class="function">ReflectionFunctionAbstract::hasReturnType()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.zip">
  <h3 class="title"><a href="book.zip.html" class="link">Zip</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="ziparchive.setcompressionindex.html" class="methodname">ZipArchive::setCompressionIndex()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="ziparchive.setcompressionname.html" class="methodname">ZipArchive::setCompressionName()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.new-functions.zlib">
  <h3 class="title"><a href="book.zlib.html" class="link">Zlib Compression</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.inflate-add.html" class="function">inflate_add()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.deflate-add.html" class="function">deflate_add()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.inflate-init.html" class="function">inflate_init()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.deflate-init.html" class="function">deflate_init()</a></span>
    </span>
   </li>
  </ul>
 </div>
</div></div></div></body></html>